import {defineStore} from "pinia";
import type {IPageInfo} from "@/api/type.ts";

type TState = {
    isLoading:boolean,
    isRefresh:boolean,
    pageInfo:IPageInfo
}
const useSettingStore = defineStore("Setting",{
    state():TState{
        return {
            isLoading:false,
            isRefresh:true,
            pageInfo:{
                pageNo:1,
                pageSize:4,
                total:1
            }
        }
    },
    getters:{
        getAppTitle(){
            return import.meta.env.VITE_APP_TITLE
        }
    }

});
export default useSettingStore;